package cn.stylefeng.guns.modular.tool.service;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.IService;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.tool.entity.ToolExpressExcel;
import cn.stylefeng.guns.modular.tool.model.params.ToolExpressExcelParam;
import cn.stylefeng.guns.modular.tool.model.result.ToolExpressExcelResult;

/**
 * 快递统计导入 服务类
 */
public interface ToolExpressExcelService extends IService<ToolExpressExcel> {

    /**
     * 新增
     *
     * @author 
     * @Date 2022-03-27
     */
    void add(ToolExpressExcelParam param);

    /**
     * 删除
     *
     * @author 
     * @Date 2022-03-27
     */
    void delete(ToolExpressExcelParam param);

    /**
     * 更新
     *
     * @author 
     * @Date 2022-03-27
     */
    void update(ToolExpressExcelParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author 
     * @Date 2022-03-27
     */
    ToolExpressExcelResult findBySpec(ToolExpressExcelParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author 
     * @Date 2022-03-27
     */
    List<ToolExpressExcelResult> findListBySpec(ToolExpressExcelParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author 
     * @Date 2022-03-27
     */
     LayuiPageInfo findPageBySpec(ToolExpressExcelParam param,String condition);

	boolean saveBatchList(List<ToolExpressExcelParam> list);

	void deleteBySpec(ToolExpressExcelParam toolExpressExcelParam);
	
	void updateBySpec(ToolExpressExcelParam toolExpressExcelParam);
	
	void updateBySpec2(ToolExpressExcelParam toolExpressExcelParam);

	List<ToolExpressExcelResult> findSumListBySpec(ToolExpressExcelParam param);

	List<ToolExpressExcelResult> findSumListBySpec2(ToolExpressExcelParam param);

	List<ToolExpressExcelResult> findListBySpecOne(ToolExpressExcelParam param,Long operateId);

	LayuiPageInfo findPageTjnumssBySpec(ToolExpressExcelParam toolExpressExcelParam, String condition,Long operateId);

	LayuiPageInfo findPageTjnumssSumBySpec(ToolExpressExcelParam toolExpressExcelParam, String condition,
			Long operateId);

}
